             package com.java.diagnostics.visualizer.recommender.sovereign;
             
             import com.java.diagnostics.visualizer.data.AggregateData;
             import com.java.diagnostics.visualizer.data.DataPoint;
             import com.java.diagnostics.visualizer.data.TupleData;
             import com.java.diagnostics.visualizer.recommender.Recommendation;
             import com.java.diagnostics.visualizer.recommender.RecommendationBase;
             import com.java.diagnostics.visualizer.recommender.util.RecommendationLabels;
             
             public class LookForJavaHeapExhaustion
               extends RecommendationBase
               implements Recommendation
             {
               private static final String INSUFFICIENT_SPACE = "insufficient space in javaheap to satisfy allocation request";
               
               public void recommend(AggregateData data)
               {
                 TupleData actions = data.getTupleData("VGCLabels.action");
                 if (actions != null) {
                   DataPoint[] dataPoints = actions.getDataPoints();
                   if (dataPoints.length > 0) {
                     for (int j = 0; j < dataPoints.length; j++) {
                       int action = (int)dataPoints[j].getRawY();
                       if ((action == 6) && 
                         (dataPoints[j].getComment().toLowerCase().contains(
                         "insufficient space in javaheap to satisfy allocation request"))) {
                         addProblem(data, 
                           RecommendationLabels.JAVA_HEAP_EXHAUSTED);
                         return;
                       }
                     }
                   }
                 }
               }
             }


